<template>
	<view id="dplayer"></view>
</template>
<script>
	import DPlayer from 'dplayer';
	export default {
	  data() {
	    return {
	      dp: null,
	    };
	  },
	  mounted() {
	    this.dp = new DPlayer({
	      container: document.getElementById('dplayer'),
	      video: {
	        url: "https://www.douyin.com/aweme/v1/play/?video_id=v0300fg10000cvggaefog65oh1eavivg&line=0&file_id=ba638944238a41b4992545b017d62956&sign=217fd4cccbfa5accad9ba0f071e972b0&is_play_url=1&source=PackSourceEnum_AWEME_DETAIL", // 替换为你的视频地址
	        type: 'auto', // 自动检测视频格式
	      },
	    });
	  },
	};
</script>